www.gusucode.com > 味多美网址导航源码程序 V20100902 > 味多美网址导航源码程序 V20100902\code\create_html.asp
<!--#include file="mdb.asp"--> <% if session("adminlogin")<>sessionvar then Response.Write("<script language=javascript>alert('你尚未登录,或者超时了!请重新登录');this.location.href='admin/index.asp';</script>") Response.End End if set rs=server.createobject("adodb.recordset") rs.open "select * from title",conn,1,3 site=rs("site") siteurl=rs("siteurl") email=rs("email") Copyright=rs("Copyright") icp=rs("icp") ads07=rs("ads07") ads08=rs("ads08") ads09=rs("ads09") ads10=rs("ads10") so2=rs("so2") rs.close classid=request("classid") rs.open "select * from feilei where classid="&classid,conn,1,3 classname=rs("classname") topclass=rs("topclass") rs.close dim wstr,fso,fw set fr=server.createobject("adodb.recordset") fr.open "select * from template where id=1",conn,1,3 wstr=fr("template") fr.close set fr=nothing dim rstr,xunxu xunxu="→<a class=word_White href='10"&classid&".htm'>" & classname & "</a>" while topclass<>0 rs.open "select * from feilei where classid="&topclass,conn,1,3 if not rs.eof then xunxu="→<a class=word_White href='10" & rs("classid") & ".htm'>" & rs("classname") & "</a>" & xunxu topclass=rs("topclass") end if rs.close wend wstr=replace(wstr,"<{{sc1}}>",xunxu) tj="" Set Count=Server.CreateObject("Adodb.Recordset") Sql="select * from detail where verity=1 and classid="&classid&"" Count.open Sql,conn,1,1 tj=tj&"共有["&Count.RecordCount&"]个网站" Count.close Set Count = Nothing wstr=replace(wstr,"<{{tj}}>",tj) rs.open "select * from feilei where topclass="&classid,conn,1,3 jishu=1 if rs.eof then rstr=rstr&"" end if while not rs.eof if jishu=1 or jishu mod 8 = 1 then rstr=rstr & "<tr><td width='150' height='20' align=center><a class=a href='10"&rs("classid")&".htm'>["&rs("classname")&"]</a></td>" else rstr=rstr & "<td width='150' height='20' align=center><a class=a href='10"&rs("classid")&".htm'>["&rs("classname")&"]</a></td>" end if if jishu mod 8 =0 then rstr=rstr & "</tr>" jishu=jishu+1 rs.movenext wend jishu=jishu-1 if jishu mod 8 <> 0 then for i= 1 to 8-(jishu mod 7) rstr=rstr & "<td width='100'> </td>" if i = 8-(jishu mod 8) then rstr=rstr & "</tr>" next end if rs.close wstr=replace(wstr,"<{{sc2}}>",rstr) rstr=empay Copyright=Copyright rs.open "select * from detail where verity=1 and classid="&classid&" order by yl_yesterin desc,id",conn,1,3 jishu=1 noooo=1 while not rs.eof if jishu=1 or jishu mod 5 = 1 then noooo=noooo+1 if noooo mod 2=1 then bgcolor="#FFFFFF" else bgcolor="#F7F7F7" end if if rs("topid")>0 then rstr=rstr & "<tr bgColor="&bgcolor&"><td width='20%' height='25'> <a class=a href='../showurl.asp?id="&rs("id")&"&2008_01_01.htm' title=【简介:"&rs("memo")&"】
昨日来路:"&rs("yl_yesterin")&"|总来路:"&rs("yl_in")&"|总去路:"&rs("out")&" target='_blank'>" if rs("yl_yesterin")>2 then rstr=rstr & "<font color=#0000FF>" end if if rs("yl_yesterin")>9 then rstr=rstr & "</font><font color=#FF0000><b>" end if rstr=rstr & " "&rs("title")&" " if rs("yl_yesterin")>2 then rstr=rstr & "</b></font>" end if rstr=rstr & " <font color=#C60A00>荐</font></a> <a title='查看收录' href='http://movie.gougou.com/search?search="&rs("title")&"&id=46361&pattern=10200' target='_blank'>⊙</a></td>" else rstr=rstr & "<tr bgColor="&bgcolor&"><td width='20%' height='25'> <a class=a href='../showurl.asp?id="&rs("id")&"&2008_01_01.htm' title=【简介:"&rs("memo")&"】
昨日来路:"&rs("yl_yesterin")&"|总来路:"&rs("yl_in")&"|总去路:"&rs("out")&" target='_blank'>" if rs("yl_yesterin")>2 then rstr=rstr & "<font color=#0000FF>" end if if rs("yl_yesterin")>9 then rstr=rstr & "</font><font color=#FF0000><b>" end if rstr=rstr & " "&rs("title")&" " if rs("yl_yesterin")>2 then rstr=rstr & "</b></font>" end if rstr=rstr & "</a> <a title='查看收录' href='http://movie.gougou.com/search?search="&rs("title")&"&id=46361&pattern=10200' target='_blank'>⊙</a></td>" end if else if rs("topid")>0 then rstr=rstr & "<td width='20%' height='20'> <a class=a href='../showurl.asp?id="&rs("id")&"&2008_01_01.htm' title=【简介:"&rs("memo")&"】
昨日来路:"&rs("yl_yesterin")&"|总来路:"&rs("yl_in")&"|总去路:"&rs("out")&" target='_blank'>" if rs("yl_yesterin")>2 then rstr=rstr & "<font color=#0000FF>" end if if rs("yl_yesterin")>9 then rstr=rstr & "</font><font color=#FF0000><b>" end if rstr=rstr & " "&rs("title")&" " if rs("yl_yesterin")>2 then rstr=rstr & "</b></font>" end if rstr=rstr & " <font color=#C60A00>荐</font></a> <a title='查看收录' href='http://movie.gougou.com/search?search="&rs("title")&"&id=46361&pattern=10200' target='_blank'>⊙</a></td>" else rstr=rstr & "<td width='20%' height='20'> <a class=a href='../showurl.asp?id="&rs("id")&"&2008_01_01.htm' title=【简介:"&rs("memo")&"】
昨日来路:"&rs("yl_yesterin")&"|总来路:"&rs("yl_in")&"|总去路:"&rs("out")&" target='_blank'>" if rs("yl_yesterin")>2 then rstr=rstr & "<font color=#0000FF>" end if if rs("yl_yesterin")>9 then rstr=rstr & "</font><font color=#FF0000><b>" end if rstr=rstr & " "&rs("title")&" " if rs("yl_yesterin")>2 then rstr=rstr & "</b></font>" end if rstr=rstr & "</a> <a title='查看收录' href='http://movie.gougou.com/search?search="&rs("title")&"&id=46361&pattern=10200' target='_blank'>⊙</a></td>" end if end if if jishu mod 5 =0 then rstr=rstr & "</tr>" jishu=jishu+1 rs.movenext wend jishu=jishu-1 if jishu mod 5 <> 0 then for i= 1 to 5-(jishu mod 5) rstr=rstr & "<td width='20%'> </td>" if i = 5-(jishu mod 5) then rstr=rstr & "</tr>" next end if rs.close wstr=replace(wstr,"<{{sc3}}>",rstr) wstr=replace(wstr,"<{{classname}}>",classname) wstr=replace(wstr,"<{{site}}>",site) wstr=replace(wstr,"<{{siteurl}}>",siteurl) wstr=replace(wstr,"<{{email}}>",email) wstr=replace(wstr,"<{{Copyright}}>",Copyright) wstr=replace(wstr,"<{{icp}}>",icp) wstr=replace(wstr,"<{{creattime}}>",date()) wstr=replace(wstr,"<{{ads07}}>",ads07) wstr=replace(wstr,"<{{ads08}}>",ads08) wstr=replace(wstr,"<{{ads09}}>",ads09) wstr=replace(wstr,"<{{ads10}}>",ads10) wstr=replace(wstr,"<{{so2}}>",so2) Set fso=Server.CreateObject("Scripting.FileSystemObject") set fw=fso.createtextfile(server.mappath("html/10"&classid&".htm"),true) fw.writeline wstr fw.close set rs=nothing set fso=nothing response.write "ok" %>